<script setup>
import { loginApi } from '@/api/index'
import { reactive } from 'vue';
const from = reactive({
    account: 'shenlingadmin',
    password: '123456',
    key: "AD6A877988F0AB5344BA196C1679824184337",
    code:"18"
})
const submitLogin = async() => {
    console.log('点击登录')
    const res = await loginApi(from)
  console.log(res);
}
</script>

<template>
        <div class="box">
            <div>
                登录
            </div>
            <button @click="submitLogin">点击登录</button>
        </div>
         
   
</template>
<style scoped>
.video {
    width: 100%;
    height: 98%;
    object-fit: fill;
    z-index: -1;
}
.box {
    width: 400px;
    height: 400px;
    background-color: #ca0c0c;
    z-index: 22;
}
</style>